<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/7/27 星期日
  Time: 22:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>

<head>
    <base href="${pageContext.request.contextPath}/" />
    <title>襄阳蓝芯智能化办公系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="static/bootstrap-3.3.5/css/bootstrap.css" rel="stylesheet">
    <style>
        /*定义类名为.thead-blue的样式*/
        .thead-blue {
            color: #fff;
            font-weight: bold;
            background-color: #337ab7;
        }
    </style>
</head>
<body>

<div class="panel panel-primary">
    <table class="table table-bordered table-hover">
        <thead>
        <tr class="thead-blue">
            <td colspan="4">员工详情</td>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td class="col-md-2"><label>员工编号</label></td>
            <td class="col-md-4">${empVo.oid}</td>
            <td class="col-md-2"><label>员工姓名</label></td>
            <td class="col-md-4">${empVo.empName}</td>
        </tr>
        <tr>
            <td><label>员工性别</label></td>
            <td>
                <c:choose>
                    <c:when test="${empVo.sex=='M'}">
                        男
                    </c:when>
                    <c:when test="${empVo.sex=='F'}">
                        女
                    </c:when>
                    <c:otherwise>
                        非法性别
                    </c:otherwise>
                </c:choose>
            </td>
            <td><label>所属部门</label></td>
            <td>${empVo.deptName}</td>
        </tr>
        <tr>
            <td><label>部门职位</label></td>
            <td>${empVo.jobName}</td>
            <td><label>出生日期</label></td>
            <td>${empVo.birthday}</td>
        </tr>

        <tr>
            <td><label>员工学历</label></td>
            <td>${empVo.degreeName}</td>
            <td><label>毕业学校</label></td>
            <td>${empVo.school}</td>
        </tr>
        <tr>
            <td><label>所学专业</label></td>
            <td>${empVo.major}</td>
            <td><label>联系电话</label></td>
            <td>${empVo.phone}</td>
        </tr>
        <tr>
            <td><label>邮箱地址</label></td>
            <td>${empVo.email}</td>
            <td><label>员工状态</label></td>
            <td>${empVo.state=='Y' ? '在职':'离职'}</td>
        </tr>
        <tr>
            <td><label>登录账号</label></td>
            <td colspan="3">${empVo.username}</td>
        </tr>
        <tr class="thead-blue">
            <td colspan="4">工作信息</td>
        </tr>
        <tr>
            <td><label>参加工作时间</label></td>
            <td>${jobinfo.workDate}</td>
            <td><label>加入公司时间</label></td>
            <td>${jobinfo.joinDate}</td>
        </tr>
        <tr>
            <td><label>调入档案时间</label></td>
            <td>${jobinfo.fileDate}</td>
            <td><label>合同开始时间</label></td>
            <td>${jobinfo.contractStart}</td>
        </tr>
        <tr>
            <td><label>合同结束时间</label></td>
            <td>${jobinfo.contractEnd}</td>
            <td><label>担保签订时间</label></td>
            <td>${jobinfo.assureDate}</td>
        </tr>
        <tr>
            <td><label>保密协议签订时间</label></td>
            <td colspan="3">${jobinfo.secretDate}</td>
        </tr>

        <tr>
            <td colspan="4" align="center">
                <a type="button" href="javascript:history.back()" class="btn btn-info">返回</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>






<script type="text/javascript">
    $(document).ajaxError(function(event,xhr) {
        if(xhr.status=="403"){//没有权限
            document.location.href = xhr.getResponseHeader("url");
        }else if(xhr.status!="200"){
            //alert("服务器错误!");
            console.log("服务器错误!");
        }
    });
</script>
</body>
</html>
